package cn.edu.sgu.www.mhxysy.dto.xingyin;

import cn.edu.sgu.www.mhxysy.dto.DataTransferObject;
import cn.edu.sgu.www.mhxysy.consts.CustomMessages;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
public class XingyinTexiaoDTO implements DataTransferObject {

    /**
     * 星印类型ID
     */
    @Positive(message = "星印类型ID" + CustomMessages.ILLEGAL)
    @NotNull(message = "星印类型" + CustomMessages.ID_NOT_NULL)
    @ApiModelProperty(value = "星印类型ID", required = true)
    Integer xingyinId;

    /**
     * 星印特效类型ID列表
     */
    @Size(min = 1, message = "星印特效类型ID列表" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "星印特效类型ID列表", required = true)
    List<Integer> texiaoIds;
}